package Day18.Top3;

import java.util.*;

public class SetTest {
    public static void main(String[] args) {
        Set<String> list=new HashSet<>();
        list.add("猫");
        list.add("狗");
        list.add("鸟");
        System.out.println(list);
        Iterator<String> a=list.iterator();
        while (a.hasNext()){
            String next=a.next();
            System.out.println(next);
        }
    }
}
